package cn.tkd.client.li.model;

import java.util.ArrayList;
import java.util.List;

import cn.lewei.client.constants.DataTypeContants;
import cn.lewei.client.model.DoPropertyDescDTO;

import com.extjs.gxt.ui.client.data.BaseModelData;

public class UserDO extends BaseModelData {
	public static String getNickInfo(String nick) {
		String str = "<a href=javascript:sendMsg(\"" + nick
				+ "\",\"''\")><img src='/images/ww1.png' border=0></a>" + nick;
		return str;
	}

	public static String getExpressDetails(double last_express_num, String url) {
		return last_express_num + "<a href='" + url
				+ "' target='_blank'>详情</a>";
	}
	public static List<DoPropertyDescDTO> getPropertyInfo() {
		List<DoPropertyDescDTO> property = new ArrayList<DoPropertyDescDTO>();
		property.add(new DoPropertyDescDTO("nick",DataTypeContants.STRING));
		property.add(new DoPropertyDescDTO("url_status",DataTypeContants.STRING));
		property.add(new DoPropertyDescDTO("url_doing_express",DataTypeContants.STRING));
		property.add(new DoPropertyDescDTO("liveness",DataTypeContants.DOUBLE));
		property.add(new DoPropertyDescDTO("last_order_num",DataTypeContants.INT));
		property.add(new DoPropertyDescDTO("last_express_num",DataTypeContants.INT));
		property.add(new DoPropertyDescDTO("last_doing_express_num",DataTypeContants.INT));
		property.add(new DoPropertyDescDTO("last_login_num",DataTypeContants.INT)); 
		return property;
	}
}
